<?php

namespace liketp\socket;

class EventsHandle
{
    public static function sendToClient($client, $data)
    {
        $response = (string)$data . PHP_EOL;
        $length = strlen($response);
        socket_send($client, $response, $length, 0);
    }
}
